package cn.yejinwen;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class TestUserName_Action extends ActionSupport {
	private static final long serialVersionUID = 2156569425865441378L;
	public String execute() throws Exception {
		HttpServletRequest request = ServletActionContext.getRequest();
		HttpSession session=request.getSession();
		String ss="1";
		session.setAttribute("admin",ss );				
        return SUCCESS;
	}
	
}
